# 1、电影名
# 2、类型
# 3、上映地点
# 4、上映时间
# 5、评分
import requests
import re
# from lxml import etree

url = 'https://ssr1.scrape.center/'
response = requests.get(url)
print(response.status_code)
# print(response.text)
html = response.text
# # re的使用
# # 1、得到一个patern
title_pa = re.compile('<h2 data-v-7f856186="" class="m-b-sm">(.*?)<')
title2_pa = re.compile('el-button--mini">\n[\s]*?<span>(.*?)<')
title3_pa = re.compile('class="m-v-sm info">\n[\s]*?<span data-v-7f856186="">(.*?)<')
intro_pa = re.compile('class="score m-t-md m-b-n-sm">[\s]*?(\d.\d)<')
# 2、通过re查找
title = title_pa.findall(html)
for i  in title:
    print(i)
title = title2_pa.findall(html)
print(title)
title = title3_pa.findall(html)
print(title)
intro = intro_pa.findall(html)
print(intro)